Bitcoin is the world’s first decentralized digital currency, and since its creation in 2009, it has grown into a multi-trillion-dollar financial network. Unlike traditional currencies controlled by governments, Bitcoin operates on a mathematical system that regulates its supply, secures transactions, and ensures its long-term sustainability. But how does it actually work?

One of the biggest challenges of any currency is inflation control—printing too much money can lead to economic instability. Bitcoin was designed with a fixed supply limit of 21 million coins, preventing uncontrolled inflation. To achieve this, it uses a mathematical process called halving, which reduces the number of new bitcoins created over time. Bitcoin mining, transaction verification, and network security all rely on cryptographic hashing and exponential difficulty adjustments, making Bitcoin a real-world application of advanced mathematical concepts.

In this lesson, you’ll step into the world of Bitcoin and explore the mathematical principles that power it. You will track a Bitcoin transaction through its journey from a simple payment to a verified block in the blockchain. Along the way, you’ll explore key math concepts such as:

🔹 Exponential Functions & Logarithms – Understand how Bitcoin mining difficulty adjusts over time.
🔹 Probability & Cryptographic Hashing – Calculate the odds of miners solving a block.
🔹 Geometric Series & Supply Limits – Discover why Bitcoin’s total supply will never exceed 21 million.

By the end of this lesson, you’ll see how math ensures Bitcoin’s security, scarcity, and long-term viability—giving you a deeper understanding of the technology behind digital money.

Data, Variables, And Assumptions

Bitcoin is a decentralized digital currency that relies on mathematical principles to secure transactions, regulate its supply, and maintain its network integrity. In this lesson, we explore key mathematical components of Bitcoin, particularly hashing, mining difficulty, block rewards, and the 21 million BTC supply cap.

To help students understand these concepts, we have simplified certain aspects of Bitcoin’s mathematical processes while preserving the core ideas behind its security and scarcity mechanisms.


Hashing and Mining Difficulty

In real Bitcoin mining, miners compete to find a valid hash that meets a dynamically adjusted target value. This target determines how hard it is to mine a block and is represented as a large hexadecimal number. Instead of using the actual target value system, we approximate the process by focusing on leading zeros in the hash output.

🔹 Why Use Leading Zeros?
Bitcoin miners don’t count zeros in real life. Instead, they generate SHA-256 hashes and check if the numerical value of the hash is below a certain target. However, the concept of leading zeros in hexadecimal hashes provides a mathematically equivalent approximation that helps students visualize and calculate mining difficulty more easily.

🔹 How This Approximation Works:

  • In reality, difficulty is determined by comparing a hash value to a moving target (adjusted every 2,016 blocks).
  • In this lesson, we simplify difficulty by expressing it in terms of leading zeros, where each additional zero makes mining 16 times harder (since each hexadecimal digit has 16 possible values).
  • This provides an intuitive way for students to explore exponential difficulty growth and practice working with exponential functions and logarithms.

Bitcoin Supply and Block Rewards

🔹 Understanding Bitcoin’s Finite Supply
Bitcoin’s total supply is mathematically capped at 21 million coins through a process called halving, where the block reward is cut in half every 210,000 blocks (roughly every 4 years).

In this lesson, students explore:

  • Finite and infinite geometric series to understand how Bitcoin’s total supply approaches (but never exceeds) 21 million BTC.
  • Exponential decay to model how block rewards shrink over time, making mining less dependent on new Bitcoin creation and more reliant on transaction fees.

Key Assumptions in This Lesson

1️⃣ Simplified Difficulty Calculation – Instead of real Bitcoin target values, we approximate difficulty using leading zeros in hash values to maintain mathematical accuracy while making the concept easier to grasp.

2️⃣ Fixed Block Time of 10 Minutes – We assume that each Bitcoin block is mined exactly every 10 minutes, while in reality, block times fluctuate slightly due to mining competition.

3️⃣ Deterministic Halving Schedule – The lesson assumes each halving occurs precisely every 210,000 blocks, even though minor variations exist due to network adjustments.

4️⃣ Idealized Mining Model – The lesson focuses on the mathematical side of mining and does not account for real-world variables such as miner incentives, hardware efficiency, or network latency.


Why These Assumptions?

Bitcoin’s real-world mechanics involve complex cryptographic protocols and fluctuating market forces, but this lesson focuses on the core mathematical structures that underpin the system. By making these approximations:

Students engage with real mathematical models without needing deep knowledge of cryptography or programming.
The lesson remains accessible while still offering an in-depth look at Bitcoin’s mining, difficulty adjustment, and supply constraints.
Math remains the focus, allowing students to apply exponential functions, probability, geometric series, and logarithms to an exciting real-world scenario.

This structured approach ensures that students not only understand Bitcoin’s mechanics but also develop mathematical reasoning skills applicable to finance, cryptography, and economics.

Do The Math

The written materials that accompany this lesson cover aspects from the following mathematical topics:

  • Conversions Using Unit Analysis (Dimensional Analysis)
  • Creating Exponential Growth Functions as Models
  • Determine the Domain of an Exponential Function
  • Hash Functions
  • Solve Exponential Functions Using Logarithms
  • Direct Variation
  • Inverse Variation
  • Proportional Scaling Factors
  • Creating Exponential Decay Functions as Models
  • Asymptotic Behaviors
  • Finite Geometric Sequences
  • Finite Geometric Series
  • Infinite Geometric Sequences
  • Infinite Geometric Series

The lesson materials in pdf form (worksheets) can be purchased by clicking the button below or here on Teachers Pay Teachers.

Buy “Bitcoin: The Math Behind the Money” on

Media

(article) Satoshi White Paper

The Problem: Main Ideas

  • Bitcoin’s fixed supply of 21 million coins is designed to prevent inflation, unlike traditional currencies that can be printed indefinitely.
  • Mining difficulty dynamically adjusts to ensure new blocks are created approximately every 10 minutes, balancing supply and maintaining network stability.
  • The Bitcoin halving process reduces block rewards every 210,000 blocks, ensuring that new Bitcoin becomes increasingly scarce over time.
  • By analyzing exponential functions, geometric series, and inverse variation, students will explore how Bitcoin’s supply and mining difficulty are mathematically controlled.

The Data and Assumptions: Main Ideas

  • Bitcoin blocks are mined every ~10 minutes, with difficulty adjusting every 2,016 blocks to regulate block timing.
  • Halving events occur every 210,000 blocks, reducing rewards and ensuring Bitcoin’s fixed 21 million supply cap.
  • Difficulty is adjusted inversely to block time, ensuring consistent mining rates despite increasing computational power.
  • Difficulty approximation using leading zeros – In reality, difficulty is based on finding a hash lower than a target value, but in this lesson, we approximate difficulty using leading zeros in the hash to simplify calculations while preserving the core mathematical concept.

Do The Math: Main Ideas

  • The primary objective of this lesson is to apply exponential functions, geometric series, and inverse variation to understand Bitcoin’s mining difficulty, halving events, and total supply limit.
  • The secondary objective is to explore proportional relationships in mining difficulty adjustments and analyze how Bitcoin’s supply follows a mathematically predictable decay over time.
  • The lesson worksheets in PDF form can be purchased [here].